Recording
with MCIWnd Controls
The following
example records waveform audio using the built-in controls of the MCIWnd
window. The example creates an MCIWnd window by using the MCIWNDF_RECORD window
style with the MCIWndCreate
case WM_COMMAND:
switch
(wParam) {
case
IDM_CREATEMCIWND:
g_hwndMCIWnd = MCIWndCreate(hwnd, g_hinst,
WS_VISIBLE | MCIWNDF_RECORD, NULL);
MCIWndNew(g_hwndMCIWnd, "waveaudio");
break;
case
IDM_SAVEMCIWND:
MCIWndSaveDialog(g_hwndMCIWnd);
break;
}